using System;
using System.Collections.Generic;

namespace B.S.NewMedical.Api.Read.DTOS.Doctor
{
    /// <summary>
    /// 开单申请详情DTO
    /// </summary>
    public class PrescriptionApplicationDetailDto
    {
        /// <summary>
        /// 开单申请ID
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// 开单信息
        /// </summary>
        public PrescriptionInfoDto PrescriptionInfo { get; set; }

        /// <summary>
        /// 开单项目列表
        /// </summary>
        public List<PrescriptionItemDto> Items { get; set; } = new List<PrescriptionItemDto>();
    }

    /// <summary>
    /// 开单信息DTO
    /// </summary>
    public class PrescriptionInfoDto
    {
        /// <summary>
        /// 申请医院
        /// </summary>
        public string HospitalName { get; set; }

        /// <summary>
        /// 就诊患者
        /// </summary>
        public string PatientName { get; set; }

        /// <summary>
        /// 登记卡号
        /// </summary>
        public string CardNo { get; set; }

        /// <summary>
        /// 开单金额
        /// </summary>
        public decimal TotalAmount { get; set; }

        /// <summary>
        /// 申请时间
        /// </summary>
        public DateTime ApplicationTime { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public string Status { get; set; }
    }

    /// <summary>
    /// 开单项目DTO
    /// </summary>
    public class PrescriptionItemDto
    {
        /// <summary>
        /// 项目ID
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// 项目类型图标（药品、检查、检验）
        /// </summary>
        public string TypeIcon { get; set; }

        /// <summary>
        /// 项目名称
        /// </summary>
        public string ItemName { get; set; }

        /// <summary>
        /// 数量：1剂
        /// </summary>
        public string QuantityText { get; set; }

        /// <summary>
        /// 项目金额
        /// </summary>
        public decimal Amount { get; set; }

        /// <summary>
        /// 项目标签（如：处方药、限购5剂）
        /// </summary>
        public List<string> Tags { get; set; } = new List<string>();
    }
} 